package com.antdesignbackend.backend.form.animalOrigin.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

/**
 * 动物来源情况报备单
 *
 * @author 林宇杰
 * @email animalOrigin
 * @date 2020-08-12 09:58:47
 */

@Data
@TableName(value = "t_animalorigin")
public class AnimalOrigin implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "Id",type = IdType.AUTO)
	private Integer id;

	//报备人(或单位)
	@TableField(value = "Reporter")
	private String reporter;
	//联系电话
	@TableField(value = "Phone")
	private String phone;
	//调入日期
	@TableField(value = "TransferDate")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date transferDate;
	//调入地址(产地)
	@TableField(value = "TransferAddress")
	private String transferAddress;
	//生产单位
	@TableField(value = "ProductionUnit")
	private String productionUnit;
	//调入动物种类
	@TableField(value = "AnimalType")
	private String animalType;
	//调入数量(头、羽)
	@TableField(value = "Number")
	private Integer number;
	//动物检疫合格证号
	@TableField(value = "Certificate")
	private String certificate;
	//当前地点
	@TableField(value = "Location")
	private String location;
	//上传动物实时状态照片
	@TableField(value = "AnimalPhoto")
	private String animalPhoto;
	//其他图片
	@TableField(value = "OtherPhoto")
	private String otherPhoto;
	//备注
	@TableField(value = "Remark")
	private String remark;
	//状态，0未通过，1通过，2审批中，3驳回
	@TableField(value = "Types")
	private Integer types;
	//创建人
	@TableField(value = "CreateBy")
	private Integer createBy;
	//创建时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "CreateTime")
	private Date createTime;
	//企业ID
	@TableField(value = "Eid")
	private Integer eid;
}
